
/* ==================
          徽章
 ==================== */

.cu-tag {
    font-size: 24*1upx;
    vertical-align: middle;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 16*1upx;
    height: 48*1upx;
    font-family: Helvetica Neue, Helvetica, sans-serif;
    white-space: nowrap;
}

.cu-tag:not([class*="bg"]):not([class*="line"]) {
    background-color: #f1f1f1;
}

.cu-tag[class*="line-"]::after {
    content: " ";
    width: 200%;
    height: 200%;
    position: absolute;
    top: 0;
    left: 0;
    border: 1*1upx solid currentColor;
    transform: scale(0.5);
    transform-origin: 0 0;
    box-sizing: border-box;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

.cu-tag.radius[class*="line"]::after {
    border-radius: 12*1upx;
}

.cu-tag.round[class*="line"]::after {
    border-radius: 1000*1upx;
}

.cu-tag[class*="line-"]::after {
    border-radius: 0;
}

.cu-tag + .cu-tag {
    margin-left: 10*1upx;
}

.cu-tag.sm {
    font-size: 20*1upx;
    padding: 0 12*1upx;
    height: 32*1upx;
}

.cu-capsule {
    display: inline-flex;
    vertical-align: middle;
}

.cu-capsule + .cu-capsule {
    margin-left: 10*1upx;
}

.cu-capsule .cu-tag {
    margin: 0;
}

.cu-capsule .cu-tag[class*="line-"]:last-child::after {
    border-left: 0 solid transparent;
}

.cu-capsule .cu-tag[class*="line-"]:first-child::after {
    border-right: 0 solid transparent;
}

.cu-capsule.radius .cu-tag:first-child {
    border-top-left-radius: 6*1upx;
    border-bottom-left-radius: 6*1upx;
}

.cu-capsule.radius .cu-tag:last-child::after,
.cu-capsule.radius .cu-tag[class*="line-"] {
    border-top-right-radius: 12*1upx;
    border-bottom-right-radius: 12*1upx;
}

.cu-capsule.round .cu-tag:first-child {
    border-top-left-radius: 200*1upx;
    border-bottom-left-radius: 200*1upx;
    text-indent: 4*1upx;
}

.cu-capsule.round .cu-tag:last-child::after,
.cu-capsule.round .cu-tag:last-child {
    border-top-right-radius: 200*1upx;
    border-bottom-right-radius: 200*1upx;
    text-indent: -4*1upx;
}

.cu-tag.badge {
    border-radius: 200*1upx;
    position: absolute;
    top: -10*1upx;
    right: -10*1upx;
    font-size: 20*1upx;
    padding: 0 10*1upx;
    height: 28*1upx;
    color: #ffffff;
}

.cu-tag.badge:not([class*="bg-"]) {
    background-color: #dd514c;
}

.cu-tag:empty:not([class*="cuIcon-"]) {
    padding: 0;
    width: 16*1upx;
    height: 16*1upx;
    top: -4*1upx;
    right: -4*1upx;
}

.cu-tag[class*="cuIcon-"] {
    width: 32*1upx;
    height: 32*1upx;
    top: -4*1upx;
    right: -4*1upx;
}
